$('.pages').page({
    currentPage: currentpage,
    leng: total,//分页总数
    activeClass: 'check' , //active 类样式定义
    prv: '',
    next: '',
    clickBack:function(page){
        var _html=
            'countyId='+countyId
            +'&townId='+townId
            +'&routeId='+routeId
            +'&stationId='+stationId
            +'&roomNum='+roomNum
            +'&area='+area
            +'&keyword='+keyword
            +'&rent='+rent
            +'&currentpage='+page
            +'&type='+type;
        location.href='/list?'+_html;
    }
})

showAddressDetail();

/* 显示标签下的隐藏内容 */
function showAddressDetail() {
    let parentClass = document.querySelectorAll('.address li');
    for (let i = 0; i < parentClass.length; i++) {
        parentClass[i].addEventListener('mouseenter', function (event) {
            let con = event.currentTarget.getElementsByClassName('con')[0];
            if (con) {
                con.style.display = 'block';
                event.currentTarget.addEventListener('mouseleave', function () {
                    con.style.display = 'none';
                });
            }
        });
    }
}
function readMore(id){
    location.href='/detail?houseId='+id+'&type=4';
}